/*
HEX   #e3e6cc

CMYK  11,10,20,0
RGB   227,230,204
HSL   67,34,85
HSV   67,11,90
XYZ   71,77,68

*/
// const convert = require('color-convert')

import convert from 'color-convert'

export function hexToCMYK(hex) {
  return convert.hex.cmyk.raw(hex)
}
export function hexToRGB(hex) {
  return convert.hex.rgb.raw(hex)
}
export function hexToHSL(hex) {
  return convert.hex.hsl.raw(hex)
}
export function hexToHSV(hex) {
  return convert.hex.hsv.raw(hex)
}
export function hexToXYZ(hex) {
  return convert.hex.xyz.raw(hex)
}

export function cmykToHex(c,m,y,k) {
  return convert.cmyk.hex(c,m,y,k)
}
export function rgbToHex(r,g,b) {
  return convert.rgb.hex(r,g,b)
}
export function hslToHex(h,s,l) {
  return convert.hsl.hex(h,s,l)
}
export function hsvToHex(h,s,v) {
  return convert.hsl.hex(h,s,v)
}
export function xyzToHex(x,y,z) {
  return convert.xyz.hex(x,y,z)
}


// const col = "#e3e6cc"

// console.log(hexToCMYK(col))
// console.log(hexToRGB(col))

// console.log(xyzToHex(70.87445112512088, 77.28415546960726, 68.3085917211525))
// console.log('tag', '')

